package com.qianfeng.wuyang.ximalaya.activity;

import android.app.Application;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by ShenHao on 2016/12/2.
 */

public class MyApplication extends Application{


    private HttpService service;

    @Override
    public void onCreate() {
        super.onCreate();
        service= new Retrofit.Builder()
                .baseUrl("http://mobile.ximalaya.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(HttpService.class);
    }
    public HttpService getService(){

        return service;
    }
}
